Skip to content

Conversation

jpakkane
Copy link
Member

No description provided.

Comment on lines +436 to +442
ANDROID_CPU_TO_MESON_CPU_FAMILY: dict[str, str] = {
'aarch64': 'aarch64',
'armv7a': 'arm',
'i686': 'x86',
'x86_64': 'x86_64',
'riscv64': 'riscv64',
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

historically there were also mipsel, mips64el and arm (armv6) architectures available

Copy link

@moi15moi moi15moi Oct 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From https://developer.android.com/ndk/guides/abis#sa

Note: Historically the NDK supported ARMv5 (armeabi), and 32-bit and 64-bit MIPS, but support for these ABIs was removed in NDK r17.

So, I think it looks like this:

Triple ABI Android CPU Meson CPU family
arm-linux-androideabi armeabi arm arm
armv7a-linux-androideabi armeabi-v7a armv7a arm
aarch64-linux-android arm64-v8a aarch64 aarch64
i686-linux-android x86 i686 x86
x86_64-linux-android x86-64 x86_64 x86_64
riscv64-linux-android riscv64 riscv64 riscv64
mipsel-linux-android mips mipsel mips
mips64el-linux-android mips64 mips64el mips64

Copy link
Member Author

@jpakkane jpakkane Oct 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ones in this MR are the ones that are installed by Android Studio when choosing to install the ndk, which I think is a feasible default. If Google starts shipping new toolchains, adding support for them should be quite easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants